/*
 * @Author: 段本显
 * @Desc: 文件简介
 * @Date: 2021-08-11 09:45:41
 * @LastEditors: 段本显
 * @LastEditTime: 2021-08-11 09:45:42
 * @Email: duanbenxian@jianq.com
 * @Mark: 如果有bug，那肯定不是我的锅，噜噜噜
 */
import { ComponentInternalInstance, getCurrentInstance } from 'vue'
export default function useCurrentInstance() {
  const { appContext } = getCurrentInstance() as ComponentInternalInstance
  const globalProperties = appContext.config.globalProperties
  return {
    globalProperties
  }
}
